package com.example.onlineanswer.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 证书实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("certificate")
public class Certificate extends BaseEntity {

    /**
     * 参赛记录ID
     */
    @TableField("participation_id")
    private Long participationId;

    /**
     * 证书编号
     */
    @TableField("certificate_no")
    private String certificateNo;

    /**
     * 证书模板ID
     */
    @TableField("template_id")
    private Long templateId;

    /**
     * 证书URL
     */
    @TableField("certificate_url")
    private String certificateUrl;

    /**
     * 颁发时间
     */
    @TableField("issue_time")
    private LocalDateTime issueTime;
} 